

/**
 * relation model
 */
export default class extends think.model.relation {
  /**
   * init
   * @param  {} args []
   * @return {}         []
   */
  init(...args) {
    super.init(...args);

    this.relation = {
      user: {
        type: think.model.HAS_ONE, //relation type
        key: 'owner',
        fKey: 'id',
        name: 'ownerinfo',
      },
    };
  }
}
